package org.itstack.demo.design.cuisine.impl;

import org.itstack.demo.design.OrderAdapterService;
import org.itstack.demo.design.service.OrderService;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-18  16:59
 * @Description:
 */
public class InsideOrderService implements OrderAdapterService {
    private OrderService orderService = new OrderService();
    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId)<=1;
    }
}
